home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / keyb / dosed517.zip / alias.doc < prev    next >
Text File  |  1994-05-09  |  3KB  |  80 lines

  1.  
  2.  
  3.        ALIAS.COM                                                 [15/12/89]
  4.        =========
  5.  
  6.  
  7.        Resident program that enables assigning short aliases to long
  8.        commands. This is a program I wrote a long time ago. I have since
  9.        long wanted to rewrite it from scratch, removing all the annoying
  10.        limitations, but it seems that I never get the time. Therefore I
  11.        just translated it to English, so that you DOSED-users can have at
  12.        least _some_ kind of aliases.
  13.  
  14.        The program will occupy about 2 kb of memory, of wich 1 kb is for
  15.        the aliases.
  16.  
  17.        NOTE: You must load DOSED _before_ ALIAS, else ALIAS won't work.
  18.              DOSED will never pass the line further, of natural causes.
  19.  
  20.        Note that I won't extend this program, so it won't help to send
  21.        suggestions. I have plenty ideas for a new version, and I hope to
  22.        be able to make it sometime.
  23.  
  24.        Type ALIAS ? for a short explanation. Here's a list of some of the
  25.        limitations:
  26.  
  27.        * Aliases won't work in batch-files, only when a line is read using
  28.          INT 21h, func 0Ah - as COMMAND.COM does when fetching commands
  29.          from the user (you!).
  30.  
  31.        * Only the first word of a line will be expanded. This means that
  32.          you can't alias a filter command like MORE. (TYPE foo | MORE).
  33.  
  34.        * Circular aliases will hang the system!
  35.  
  36.        * Only letters (A-Z) allowed in aliasnames.
  37.  
  38.        * No uninstall.
  39.  
  40.        * No user-specified buffer-size.
  41.  
  42.        * No initfile with list of aliases.
  43.  
  44.        * And most important: No positional parameters. ALIAS will just
  45.          replace the first word with whatever the alias is.
  46.  
  47.  
  48.        I have a file called ALIAS.BAT that is run from AUTOEXEC.BAT using:
  49.  
  50.            CALL \BAT\ALIAS.BAT
  51.  
  52.        Here's some example lines from that ALIAS.BAT of mine:
  53.  
  54.            lh alias cc  bcc -mt -lt -f- -O2 -G -Z -vi
  55.            alias dur    dir
  56.            alias la     xd -h -wnesdta
  57.            alias ll     xd
  58.            alias ls     xd -wF -s- -t- -f-
  59.            alias m      c:\borlandc\bin\make
  60.            alias qfa    format a: /q /u /v:""
  61.            alias tidy   rm -rv \*.bak \*.~*
  62.            alias sync   smartdrv /c
  63.  
  64.        Note that the first ALIAS has LH in front of it, to load it high.
  65.        Only the first call makes a resident program, so only the first
  66.        needs LH.
  67.  
  68.        XD is my directory lister, RM is my Unix-like rm (see OTHERPRG.TXT).
  69.  
  70.        And as you can see, ALIAS is nice for spelling errors :-)
  71.  
  72.  
  73.        Finally: _I_ live a happy life with this program, in spite of it's
  74.        many limitations, maybe you can too... :-)
  75.  
  76.  
  77.  
  78.                                                     Sverre.
  79.  
  80.